Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent result duplication on slow search #30

Merged
merged 1 commit into from
Jun 21, 2022

Conversation

mbrodala
Copy link
Member

@mbrodala mbrodala commented Apr 9, 2021

The search logic happens in a timer, if a search is too slow than the configured delay, the same search will be performed again.
This leads to the same results being appended again and again until the situation normalizes over time.

To avoid this, we directly update the last term and page every time the search is processed instead of doing this after the search results where retrieved.

The search logic happens in a timer, if a search is too slow than the configured delay, the same search will be performed again.
This leads to the same results being appended again and again until the situation normalizes over time.

To avoid this, we directly update the last term and page every time the search is processed instead of doing this after the search results where retrieved.
@mbrodala mbrodala force-pushed the prevent-result-duplication branch from 2908252 to 3cbea28 Compare June 21, 2022 08:35
@mbrodala mbrodala enabled auto-merge June 21, 2022 08:35
@mbrodala mbrodala merged commit 2ada9cd into master Jun 21, 2022
@mbrodala mbrodala deleted the prevent-result-duplication branch June 21, 2022 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant